﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Data.SqlClient;
using System.Web.Configuration;

/// <summary>
/// Summary description for DAO_dataProvider
/// </summary>

namespace DoAnASP
{
    public class DAO_dataProvider
    {
       public SqlConnection conn;

       public DAO_dataProvider()
       {
           //
           // TODO: Add constructor logic here
           //
       }

       public void ChuoiKetNoi ()
       {

           //String cn = WebConfigurationManager.ConnectionStrings["QLBH"].ConnectionString;
           String cn = WebConfigurationManager.ConnectionStrings["chuoiketnoi"].ConnectionString;
           conn = new SqlConnection(cn);
                    
       }
       public void Open_Connection()
       {
           conn.Open();
       }
       public void Close_Connection()
       {
           conn.Close();
       }
        


    }
}
